package com.burstly.lib.ui;

import com.burstly.lib.util.LoggerExt;

abstract class SafeInvoker
  implements Runnable
{
  private static final LoggerExt LOG = LoggerExt.getInstance();
  private final String mBurstlyViewId;
  private final IBurstlyAdListener mListener;

  SafeInvoker(IBurstlyAdListener paramIBurstlyAdListener, String paramString)
  {
    this.mListener = paramIBurstlyAdListener;
    this.mBurstlyViewId = paramString;
  }

  abstract void invoke();

  public void run()
  {
    if (this.mListener != null);
    try
    {
      invoke();
      return;
    }
    catch (Throwable localThrowable)
    {
      LOG.logError(this.mBurstlyViewId, "Client`s IBurstlyAdListener has thrown an uncaught exception! Exception is: ", new Object[0]);
      LOG.logThrowable(this.mBurstlyViewId, localThrowable);
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.ui.SafeInvoker
 * JD-Core Version:    0.6.2
 */